<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>css样式</title>
    <style>
        a:hover {
            color: red;
            text-decoration: none;
        }

        p:hover {
            /* color: red; */
            /* text-decoration: underline; */
            background-color: #934ed3;
            cursor: pointer;
        }

        p {
            width: 100px;
            height: 30px;
            background-color: blueviolet;
            color: white;
            text-align: center;
            /* 文本垂直居中 设置行高等于高度值 */
            line-height: 30px;
            border-radius: 8px;
        }

        button {
            width: 100px;
            height: 30px;
            background-color: #934ed3;
            color: white;
            border-radius: 8px;
            border: none;
            outline: none;
        }

        button:hover {
            background-color: blueviolet;
            cursor: pointer;
        }

        ul {
            padding: 0;
            margin: 0;
            list-style: none;
        }

        .box1 {
            width: 500px;
            height: 500px;
            /* background-color: pink; */
            /*background-image: url(../img/11.jpg);
            background-repeat:no-repeat;
            background-position: 50%;
            background-size:cover; */
            /* background: url(../img/22.jpg) no-repeat pink; */
            /* background-size: cover; */
            background: linear-gradient(to top, orange,green,yellow,blue);
        }
    </style>
</head>

<body>
    <a href="#">百度</a>
    <p>确定</p>

    <button>按钮</button>

    <ul>
        <li>元素一</li>
        <li>元素二</li>
        <li>元素三</li>
    </ul>

    <!-- 背景颜色 -->
    <div class="box1"></div>
</body>

</html>